nbd: use loff_t for blocksize and nbd_set_size args
authorJosef Bacik <jbacik@fb.com>
Fri, 2 Dec 2016 21:19:12 +0000 (16:19 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 Mar 2017 01:16:33 +0000 (01:16 +0000)
commit13dd7ab63a18e31dd18f4273175d027a5a4ce6b0
tree0ce5840f9a5f5bed57b6971fd69557c743ecc1d8
parentb7ea2bc0ceb3ace7e243fa18ca482d5df9c8ac85
nbd: use loff_t for blocksize and nbd_set_size args

If we have large devices (say like the 40t drive I was trying to test with) we
will end up overflowing the int arguments to nbd_set_size and not get the right
size for our device.  Fix this by using loff_t everywhere so I don't have to
think about this again.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
[bwh: Backported to 4.9: adjust context]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name nbd-use-loff_t-for-blocksize-and-nbd_set_size-args.patch
drivers/block/nbd.c